dropdown: Annotate the get_selected_item method
authorCorentin Noël <corentin.noel@collabora.com>
Fri, 26 Jun 2020 07:59:12 +0000 (09:59 +0200)
committerCorentin Noël <corentin@elementary.io>
Fri, 26 Jun 2020 08:00:59 +0000 (10:00 +0200)
We need to specify the type as we already know that it is at least a GObject and in case of no selection, NULL is returned.

gtk/gtkdropdown.c

index 8430c1450b45010ed61e3b33d0c40edc6081b0a0..721493dd3f0ea9140dfea39697177f2098b0867a 100644 (file)
@@ -821,7 +821,7 @@ gtk_drop_down_get_selected (GtkDropDown *self)
  *
  * Gets the selected item. If no item is selected, %NULL is returned.
  *
- * Returns: (transfer none): The selected item
+ * Returns: (transfer none) (type GObject) (nullable): The selected item
  */
 gpointer
 gtk_drop_down_get_selected_item (GtkDropDown *self)